package com.tz.mapper;


import com.tz.entity.ZhangWu;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ZhangWuMapper {
    /**
     * 查询所有数据
     * @return
     */
    @Select("select * from gjp_zhangwu")
    List<ZhangWu> selectAll();

    /**
     *插入数据
     */
    @Insert("insert into gjp_zhangwu values(null,#{flname},#{money},#{zhanghu},#{createtime},#{description},#{userid})")
    void add(ZhangWu zhangWu);

}
